package business.report.impl;

import business.report.SecurityTrainingService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import report.domain.SecurityTraining;
import report.domain.SecurityTrainingCriteria;
import report.mapper.SecurityTrainingMapper;

import java.util.List;

/**
 * Created by SunZZ on 2016/6/19.
 */
@Service(value = "securityTrainingService")
public class SecurityTrainingServiceImpl implements SecurityTrainingService{
    @Autowired
    SecurityTrainingMapper securityTrainingMapper;

    @Override
    public List<SecurityTraining> getSecurityTraining() {
        SecurityTrainingCriteria criteria = new SecurityTrainingCriteria();
        criteria.createCriteria().getAllCriteria();
        return securityTrainingMapper.selectByExample(criteria);
    }
}
